<?php
namespace Core;
use \Phalcon\Mvc\User\Component;

/**
 * Abstract api.
 */
abstract class Api extends Component
{
    /**
     * Api arguments.
     *
     * @var array
     */
    private $_arguments;

    /**
     * Create api.
     *
     * @param DiInterface $di        Dependency injection.
     * @param array       $arguments Api arguments.
     */
    public function __construct($arguments) {
        $this->_arguments = $arguments;
    }

    /**
     * Get Api call arguments.
     *
     * @return array
     */
    public function getArguments() {
        return $this->_arguments;
    }
}